package astnode;

public class IDFactorNode extends ExpressionNode {
	
	private int identifier = -1;
	private DeclarationNode declaration = null;
	
	public IDFactorNode( int lineNum ) {
		super(lineNum);
	}
	public IDFactorNode(IDFactorNode factor) {
		super( factor.getLineNum() );
		this.identifier = factor.identifier;
		this.declaration = factor.declaration;
	}

	public int getIdentifier() {
		return identifier;
	}

	public void setIdentifier(int identifier) {
		this.identifier = identifier;
	}
	public DeclarationNode getDeclaration() {
		return declaration;
	}
	public void setDeclaration(DeclarationNode declaration) {
		this.declaration = declaration;
	}

}
